package com.bjtech.dao.ibatis;

import java.util.List;

import org.springframework.stereotype.Repository;
import org.ssi.dao.impl.BaseDaoSqlMapImpl;

import com.bjtech.dao.SysAccessaryDao;
import com.bjtech.domain.SysAccessary;

/**
 * @author wf
 *
 */
@Repository(value="sysAccessaryDao")
public class SqlMapSysAccessaryDao extends BaseDaoSqlMapImpl<SysAccessary> implements
		SysAccessaryDao {

	public void deleteAccByLinkId(Long linkId) {
		super.getSqlMapClientTemplate().delete("deleteAccByLinkId", linkId);
	}

	public SysAccessary selectAccListByLinkId(Long link_id) {
		return (SysAccessary) super.getSqlMapClientTemplate().queryForObject("selectAccListByLinkId",link_id);
	}

}
